#include <CommandDeselect.h>
Inheritance diagram for CommandDeselect:

Public Member Functions | |
| CommandDeselect (TraffEduObject *obj, OSGWindows *osgwind) | |
| bool | execute () |
| bool | unexecute () |
| void | changeState () |
| void | changeStateReverse () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| vector< TraffEduObject * > | deselectedObjs_ |
| osg::StateSet * | stateset |
Definition at line 7 of file CommandDeselect.h.
|
||||||||||||
|
A constructor. Initializes osgwind_ variable and drop the deselected object from the selected object list.
Definition at line 2 of file CommandDeselect.cpp. References deselectedObjs_, OSGWindows::dropUnselectedObject(), osgwind, and osgwind_. |
|
|
highlight the seleted objects in the environment. Definition at line 33 of file CommandDeselect.cpp. References stateset. |
|
|
un_highlight the selected objects in the environment. Definition at line 41 of file CommandDeselect.cpp. References stateset. Referenced by execute(). |
|
|
do the deselection operation.
Implements Command. Definition at line 15 of file CommandDeselect.cpp. References changeStateReverse(), deselectedObjs_, OSGWindows::getObjects(), osgwind_, and stateset. Referenced by OSGWindows::addCommandDeselect(). |
|
|
undo the deselection operation.
Implements Command. Definition at line 28 of file CommandDeselect.cpp. |
|
|
a private vector of TraffEduObjects. It holds the deselected objects. Definition at line 21 of file CommandDeselect.h. Referenced by CommandDeselect(), and execute(). |
|
|
a private variable. It is initialized with the unique OSGWindows instance. Definition at line 15 of file CommandDeselect.h. Referenced by CommandDeselect(), and execute(). |
|
|
a private osg::StateSet pointer. It holds state of the selected/deselected objects. Definition at line 27 of file CommandDeselect.h. Referenced by changeState(), changeStateReverse(), and execute(). |
1.4.6-NO